From: John Wiegley Date: Thu, 10 May 2001 02:46:38 +0000 (+0000) Subject: One more variable coming up nil on the first time around, needing X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~40386 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=5755ecf467f6f72bc4b19f5fc4909b0f7ad07df9;p=emacs.git One more variable coming up nil on the first time around, needing guarding. --- diff --git a/lisp/calendar/timeclock.el b/lisp/calendar/timeclock.el index a054513441c..e570f9bf2f7 100644 --- a/lisp/calendar/timeclock.el +++ b/lisp/calendar/timeclock.el @@ -1080,7 +1080,7 @@ See the documentation for the given function if more info is needed." (unless timeclock-last-event-workday (setq timeclock-last-event-workday timeclock-workday)) (setq accum timeclock-discrepancy - elapsed timeclock-elapsed) + elapsed (or timeclock-elapsed elapsed)) (if timeclock-last-event (if (equal (car timeclock-last-event) "i") (let ((last-period (timeclock-last-period now)))